<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
  <meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>By Element Locator &mdash; Selenium-Driverless 1.9.3.1 documentation</title>
      <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
      <link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />

  
  <!--[if lt IE 9]>
    <script src="../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
        <script src="../../_static/jquery.js?v=5d32c60e"></script>
        <script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
        <script src="../../_static/documentation_options.js?v=58554080"></script>
        <script src="../../_static/doctools.js?v=888ff710"></script>
        <script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
    <script src="../../_static/js/theme.js"></script>
    <link rel="index" title="Index" href="../../genindex/" />
    <link rel="search" title="Search" href="../../search/" />
    <link rel="next" title="webdriver.Chrome" href="../Chrome/" />
    <link rel="prev" title="Documentation of Driverless" href="../../" /> 
</head>

<body class="wy-body-for-nav"> 
  <div class="wy-grid-for-nav">
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >

          
          
          <a href="../../" class="icon icon-home">
            Selenium-Driverless
          </a>
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>
        </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
              <ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">By Element Locator</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#selenium_driverless.types.by.By"><code class="docutils literal notranslate"><span class="pre">By</span></code></a><ul>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.types.by.By.ID"><code class="docutils literal notranslate"><span class="pre">By.ID</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.types.by.By.NAME"><code class="docutils literal notranslate"><span class="pre">By.NAME</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.types.by.By.XPATH"><code class="docutils literal notranslate"><span class="pre">By.XPATH</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.types.by.By.TAG_NAME"><code class="docutils literal notranslate"><span class="pre">By.TAG_NAME</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.types.by.By.CLASS_NAME"><code class="docutils literal notranslate"><span class="pre">By.CLASS_NAME</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.types.by.By.CSS_SELECTOR"><code class="docutils literal notranslate"><span class="pre">By.CSS_SELECTOR</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#selenium_driverless.types.by.By.CSS"><code class="docutils literal notranslate"><span class="pre">By.CSS</span></code></a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Chrome/">webdriver.Chrome</a></li>
<li class="toctree-l1"><a class="reference internal" href="../ChromeOptions/">ChromeOptions</a></li>
<li class="toctree-l1"><a class="reference internal" href="../Context/">Context</a></li>
<li class="toctree-l1"><a class="reference internal" href="../Input/">Input</a></li>
<li class="toctree-l1"><a class="reference internal" href="../RequestInterception/">Request-Interception</a></li>
<li class="toctree-l1"><a class="reference internal" href="../Target/">Target</a></li>
<li class="toctree-l1"><a class="reference internal" href="../WebELement/">WebElement</a></li>
</ul>

        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../">Selenium-Driverless</a>
      </nav>

      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="../../" class="icon icon-home" aria-label="Home"></a></li>
      <li class="breadcrumb-item active">By Element Locator</li>
      <li class="wy-breadcrumbs-aside">
            <a href="../../_sources/api/By.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
             
  <section id="by-element-locator">
<h1>By Element Locator<a class="headerlink" href="#by-element-locator" title="Link to this heading"></a></h1>
<dl class="py class">
<dt class="sig sig-object py" id="selenium_driverless.types.by.By">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">selenium_driverless.types.by.</span></span><span class="sig-name descname"><span class="pre">By</span></span><a class="reference internal" href="../../_modules/selenium_driverless/types/by/#By"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#selenium_driverless.types.by.By" title="Link to this definition"></a></dt>
<dd><p>Set of supported locator strategies.</p>
<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.types.by.By.ID">
<span class="sig-name descname"><span class="pre">ID</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">'id'</span></em><a class="headerlink" href="#selenium_driverless.types.by.By.ID" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.types.by.By.NAME">
<span class="sig-name descname"><span class="pre">NAME</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">'name'</span></em><a class="headerlink" href="#selenium_driverless.types.by.By.NAME" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.types.by.By.XPATH">
<span class="sig-name descname"><span class="pre">XPATH</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">'xpath'</span></em><a class="headerlink" href="#selenium_driverless.types.by.By.XPATH" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.types.by.By.TAG_NAME">
<span class="sig-name descname"><span class="pre">TAG_NAME</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">'tag</span> <span class="pre">name'</span></em><a class="headerlink" href="#selenium_driverless.types.by.By.TAG_NAME" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.types.by.By.CLASS_NAME">
<span class="sig-name descname"><span class="pre">CLASS_NAME</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">'class</span> <span class="pre">name'</span></em><a class="headerlink" href="#selenium_driverless.types.by.By.CLASS_NAME" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.types.by.By.CSS_SELECTOR">
<span class="sig-name descname"><span class="pre">CSS_SELECTOR</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">'css</span> <span class="pre">selector'</span></em><a class="headerlink" href="#selenium_driverless.types.by.By.CSS_SELECTOR" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="selenium_driverless.types.by.By.CSS">
<span class="sig-name descname"><span class="pre">CSS</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">'css</span> <span class="pre">selector'</span></em><a class="headerlink" href="#selenium_driverless.types.by.By.CSS" title="Link to this definition"></a></dt>
<dd><p>alias to By.CSS_SELECTOR</p>
</dd></dl>

</dd></dl>

</section>


           </div>
          </div>
          <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
        <a href="../../" class="btn btn-neutral float-left" title="Documentation of Driverless" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
        <a href="../Chrome/" class="btn btn-neutral float-right" title="webdriver.Chrome" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 2024, Aurin Aegerter (aka Steve, kaliiiiiiiiii).</p>
  </div>

  Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    provided by <a href="https://readthedocs.org">Read the Docs</a>.
   

</footer>
        </div>
      </div>
    </section>
  </div>
  <script>
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>